<div class="row">
	
	<ul class="nav nav-tabs">
		<li  class="active"><a href="<?=site_url('home/view_admin');?>">Administrative Employees</a></li>
		<li><a href="<?=site_url('home/view_teaching');?>">Teaching Personnel</a></li>
	</ul>
	
	<div class="navbar">
	  <div class="navbar-inner">
		<a class="brand" href="#">Administrative Employees</a>
		<ul class="nav">
		  <li><a href="<?=site_url('home/view_admin');?>">View</a></li>
		  <li><a href="<?=site_url('home/add_admin');?>">Add New Employee</a></li>
		  <li class="active"><a href="#">Update Profile</a></li>
		</ul>
	  </div>
	</div>

	<?php echo validation_errors()== '' ? NULL : '<div class="alert alert-error">'.validation_errors().'</div>';?>
	<?=$system_message;?>
	<form action="<?=site_url('home/edit_admin');?>" method="POST" class="well">
	<div class="row">
		<div class="span4">
			<p class="lead">Profile:</p>
		</div>
	</div>
	<div class="row">
		<div class="span3">
			<label>Firstname</label>
			<input type="text" name="firstname" value="<?=set_value('firstname',$admin_profile->firstname);?>" required>
		</div>
		<div class="span3">
			<label>lastname</label>
			<input type="text" name="lastname" value="<?=set_value('lastname',$admin_profile->lastname);?>" required>
		</div>
		<div class="span3">
			<label>Middlename</label>
			<input type="text" name="middlename"  value="<?=set_value('middlename',$admin_profile->middlename);?>" required>
		</div>
		<div class="span1">
			<label>Age</label>
			<input type="number" min="0" class="span1" name="age"  value="<?=set_value('age',$admin_profile->age);?>" >
		</div>
		<div class="span1">
			<label>gender</label>
			<select name="gender" class="span2">
				<option></option>
				<option value="M">Male</option>
				<option value="F">Female</option>
			</select>
		</div>
	</div>
	
	<div class="row">
		<div class="span4">
			<p class="lead">Educational Attainment:</p>
		</div>
	</div>
	
	<div class="row">
		<div class="span3">
			<label>Baccalaureate</label>
			<input type="text" name="baccalaureate"  value="<?=set_value('baccalaureate',$admin_profile->baccalaureate);?>" >
		</div>
		<div class="span3">
			<label>Masters/Doctorate</label>
			<input type="text" name="masters" value="<?=set_value('masters',$admin_profile->masters);?>" >
		</div>
		<div class="span3">
			<label>Licensure Exams taken</label>
			<input type="text" name="licensure"  value="<?=set_value('licensure',$admin_profile->licensure_exams_taken);?>" >
		</div>
	</div>
	
	<div class="row">
		<div class="span4">
			<p class="lead">Work</p>
		</div>
	</div>
	
	<div class="row">
		<div class="span3">
			<label>Employment Status</label>
			<input type="text" name="emp_stat"  value="<?=set_value('emp_stat',$admin_profile->employment_stat);?>" >
		</div>
		<div class="span3">
			<label>Position</label>
			<input type="text" name="position"  value="<?=set_value('position',$admin_profile->position);?>" >
		</div>
		<div class="span3">
			<label>Work Experience</label>
			<input type="number" min="0"class="span1" name="work_exp"  value="<?=set_value('work_exp',$admin_profile->work_exp);?>" >
		</div>
	</div>
	<div class="row">
		<div class="span4">
			<input type="submit" name="update_admin" value="Update" class="btn btn-primary">
		</div>
	</div>
	</form><!-- end form -->
</div>